package com.twu.biblioteca;

public class Book extends Item {

    private final String author;

    public Book(String title, String author, int year){
        super(title, year);
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void returnBook(User user) {
        onLoanToUser = null;
        user.returnBook(this);
    }

}
